package com.hyou.demos.mybatis.pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyou.demos.mybatis.base.BaseBean;

/**
 * 示例
 * 
 * CREATE TABLE `t_user_demo` (
 *      `id` bigint(20) NOT NULL,
 *      `name` varchar(32) DEFAULT NULL,
 *      `bir` date DEFAULT NULL,
 *      `sex` int(1) DEFAULT NULL,
 *      `crt_time` datetime DEFAULT NULL,
 *      PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8
 * 
 * @author FengChangshuo
 * @version 1.0.0 2017年4月19日 下午4:02:00 created
 */
public class DemoUser extends BaseBean {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -7536154193589639740L;
    
    private Long id;
    
    private String name;
    
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date bir;
    
    private Integer sex;
    
    private Date crtTime;

    /**
     * @return the id
     */
    public Long getId() {
        return this.id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the bir
     */
    public Date getBir() {
        return this.bir;
    }

    /**
     * @param bir the bir to set
     */
    public void setBir(Date bir) {
        this.bir = bir;
    }

    /**
     * @return the sex
     */
    public Integer getSex() {
        return this.sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * @return the crtTime
     */
    public Date getCrtTime() {
        return this.crtTime;
    }

    /**
     * @param crtTime the crtTime to set
     */
    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }
    
}
